// 骑手端路由配置
import type { RouteRecordRaw } from "vue-router";

const riderRoutes: RouteRecordRaw[] = [
  {
    path: "/rider/login",
    name: "RiderLogin",
    component: () => import("@/views/rider/LoginView.vue"),
    meta: { requiresAuth: false, redirectIfLoggedIn: true, role: "rider" },
  },
  {
    path: "/rider/register",
    name: "RiderRegister",
    component: () => import("@/views/rider/RegisterView.vue"),
    meta: { requiresAuth: false, redirectIfLoggedIn: true, role: "rider" },
  },
  {
    path: "/rider",
    redirect: "/rider/home"
  },
  {
    path: "/rider/home",
    name: "RiderHome",
    component: () => import("@/views/rider/HomeView.vue"),
    meta: { requiresAuth: true, role: "rider" },
  },
//   {
//     path: "/rider/orders",
//     name: "RiderOrders",
//     component: () => import("@/views/rider/OrdersView.vue"),
//     meta: { requiresAuth: true, role: "rider" },
//   },
//   {
//     path: "/rider/orders/:id",
//     name: "RiderOrderDetail",
//     component: () => import("@/views/rider/OrderDetailView.vue"),
//     meta: { requiresAuth: true, role: "rider" },
//   },
//   {
//     path: "/rider/profile",
//     name: "RiderProfile",
//     component: () => import("@/views/rider/ProfileView.vue"),
//     meta: { requiresAuth: true, role: "rider" },
//   },
//   {
//     path: "/rider/earnings",
//     name: "RiderEarnings",
//     component: () => import("@/views/rider/EarningsView.vue"),
//     meta: { requiresAuth: true, role: "rider" },
//   },
];

export default riderRoutes;
